package com.service.yzj.dao;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;

import com.service.yzj.model.custom.CustomUserInfo;

@Mapper
public interface CustomMapper {
    CustomUserInfo getCustomerById(long userId);

    CustomUserInfo getCustomerByOrderId(long orderId);

    List<CustomUserInfo> getCustomInfoWithKeyword(
        int offset,
        int pageSize,
        String name,
        String telephone,
        String residentialQuarter,
        String server,
        String square,
        String type
    );

    int getCustomInfoWithKeywordTotalCount(
        int offset,
        int pageSize,
        String name,
        String telephone,
        String residentialQuarter,
        String server,
        String square,
        String type
    );
}
